export default {
    calcDaysByDateRange (startDate, endDate){
        if(!startDate || !endDate){
            return 0;
        }

        let s = new Date(startDate).getTime(),
            e = new Date(endDate).getTime();

        return (e - s) / (1000 * 60 * 60 * 24) + 1
    }
}
